@import url("https://fonts.googleapis.com/css2?family=Inter:wght@100;200;300;400;500;600;700;800&display=swap");
@import url("https://fonts.cdnfonts.com/css/sf-pro-display");

* {
  padding: 0;
  margin: 0;
  list-style: none;
  border: none;
  outline: 0;
  -webkit-overflow-scrolling: touch;
  text-decoration: none;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scrollbar-width: auto;
  scrollbar-color: #ccc #fff;
  -webkit-tap-highlight-color: transparent;
  &::-webkit-scrollbar {
    width: 8px;
  }
  &::-webkit-scrollbar-track {
    background: transparent;
  }
  &::-webkit-scrollbar-thumb {
    background-color: #ccc;
    border: 4px solid transparent;
  }
  &::before,
  &::after {
    box-sizing: border-box;
  }
}

@mixin no-select {
  -webkit-user-drag: none;
  user-select: none;
  -moz-user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
}

$border: 1px solid rgba(#000, 0.1);
$border-radius: 4px;
$gap: 7px;

html,
body {
  height: 100%;
}

body,
input,
textarea,
select,
button {
  font-family: "Inter", sans-serif;
}
body {
  background: url("https://i.hizliresim.com/pi7j0rb.jpg") no-repeat center
    center fixed;
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  background-size: cover;
}
main {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 20px;
  gap: 20px;
  overflow: hidden;
  .whatsapp {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
    z-index: 1;
    .iphoneFront {
      width: 344px;
      height: 700px;
      background-color: #000;
      border-radius: 50px;
      position: relative;
      box-shadow: 0 0 20px 0 rgba(#000, 0.4);
      .frame {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        border: 3px solid #bbb5b3;
        border-radius: 50px;
        box-shadow: 0 0 0 1px #4a4947;
      }
      .antenas {
        > div {
          background-color: #75726f;
          position: absolute;
        }
        .tt {
          width: 8px;
          height: 3.5px;
          top: 0;
          right: 60px;
        }
        .tr {
          width: 3.5px;
          height: 8px;
          top: 60px;
          right: -1px;
        }
        .tl {
          width: 3.5px;
          height: 8px;
          top: 60px;
          left: -1px;
        }
        .bb {
          width: 8px;
          height: 3.5px;
          bottom: -1.5px;
          left: 60px;
        }
        .bl {
          width: 3.5px;
          height: 8px;
          bottom: 60px;
          left: -1px;
        }
        .br {
          width: 3.5px;
          height: 8px;
          bottom: 60px;
          right: -1px;
        }
      }
      .keys {
        .silent {
          width: 3.5px;
          height: 28px;
          border-top: 2px solid #eae0d9;
          border-bottom: 2px solid #eae0d9;
          position: absolute;
          top: 105px;
          left: -4.5px;
          background: linear-gradient(90deg, #888, #555);
        }
        .volt {
          width: 3.5px;
          height: 50px;
          border-top: 2px solid #eae0d9;
          border-bottom: 2px solid #eae0d9;
          position: absolute;
          top: 150px;
          left: -4.5px;
          background: linear-gradient(90deg, #888, #555);
        }
        .volb {
          width: 3.5px;
          height: 50px;
          border-top: 2px solid #eae0d9;
          border-bottom: 2px solid #eae0d9;
          position: absolute;
          top: 210px;
          left: -4.5px;
          background: linear-gradient(90deg, #888, #555);
        }
        .lock {
          width: 3.5px;
          height: 70px;
          border-top: 2px solid #eae0d9;
          border-bottom: 2px solid #eae0d9;
          position: absolute;
          top: 192px;
          right: -4.5px;
          background: linear-gradient(-90deg, #888, #555);
        }
      }
      .screen {
        display: flex;
        flex-direction: column;
        width: calc(100% - 24px);
        height: calc(100% - 24px);
        background-image: url("https://i.hizliresim.com/tr6ta6t.png");
        background-size: cover;
        border-radius: 40px;
        margin-top: 12px;
        margin-left: 12px;
        position: relative;
        overflow: hidden;
        .island {
          position: absolute;
          top: 8px;
          right: 0;
          left: 0;
          margin-right: auto;
          margin-left: auto;
          width: 90px;
          height: 25px;
          background-color: #000;
          border-radius: 40px;
          z-index: 1;
          .camera {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            right: 10px;
            width: 15px;
            height: 15px;
            background-color: #111;
            border-radius: 50%;
            &::before {
              content: "";
              display: block;
              position: absolute;
              top: 3px;
              left: 3px;
              width: 9px;
              height: 9px;
              border-radius: 50%;
              background-color: #161a3c;
            }
            &::after {
              content: "";
              display: block;
              position: absolute;
              top: 5px;
              left: 5px;
              width: 5px;
              height: 5px;
              background: linear-gradient(
                0,
                #03344f 0%,
                #040e27 50%,
                #3e5191 100%
              );
              border-radius: 50%;
            }
          }
        }
        nav {
          position: relative;
          display: flex;
          align-items: flex-end;
          justify-content: center;
          padding: 10px 15px;
          background: rgba(#fff, 0.7);
          width: 100%;
          height: 15%;
          gap: 8px;
          border-bottom: 1px solid rgba(#075e56, 0.3);
          @include no-select();
          .status-bar-top {
            position: absolute;
            top: 0;
            left: 0;
            z-index: 0;
            display: flex;
            align-items: center;
            justify-content: space-between;
            width: 100%;
            padding: 11px 25px;
            .left {
              padding-left: 15px;
              span {
                font-family: "SF Pro Display", sans-serif;
                font-size: 16px;
                font-weight: 500;
                color: #171717;
              }
            }
            .right {
              display: flex;
              align-items: center;
              justify-content: center;
              ul {
                display: flex;
                align-items: center;
                justify-content: center;
                gap: 8px;
                li {
                  display: flex;
                  align-items: center;
                  justify-content: center;
                  img {
                    @include no-select();
                  }
                }
              }
            }
          }
          .content {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 100%;
            .back {
              display: flex;
              align-items: center;
              justify-content: center;
              height: 34px;
              margin-right: 15px;
              cursor: pointer;
              img {
                @include no-select();
              }
            }
            .avatar {
              display: flex;
              align-items: center;
              justify-content: center;
              width: 34px;
              height: 34px;
              margin-right: 7px;

              img {
                width: 100%;
                height: 100%;
                object-fit: cover;
                border-radius: 50%;
                @include no-select();
              }
            }
            .details {
              display: flex;
              align-items: flex-start;
              justify-content: center;
              flex-direction: column;
              height: 33px;
              span {
                font-size: 14px;
                font-weight: 600;
              }
              p {
                font-size: 12px;
                font-weight: 400;
                color: rgba(#000, 0.7);
              }
            }
            .call,
            .video-call {
              display: flex;
              align-items: center;
              justify-content: center;
              width: 34px;
              height: 34px;
              img {
                @include no-select();
              }
            }
            .video-call {
              margin: 0 5px 0 auto;
            }
          }
        }
        .main {
          display: flex;
          flex-direction: column;
          width: 100%;
          height: 85%;
          padding: 15px;
          gap: 15px;
          overflow-y: auto;
          .incoming-message,
          .outgoing-message {
            display: flex;
            flex-direction: column;
            background: #ddf7c6;
            padding: 10px;
            border-radius: 8px;
            box-shadow: 0 0 7px 0 rgba(#000, 0.07);
            width: auto;
            max-width: 222px;
            margin-right: auto;
            gap: 5px;
            cursor: pointer;
            p {
              font-size: 14px;
              font-weight: 400;
              word-break: break-word;
            }
            img {
              border-radius: 4px;
              overflow: hidden;
              object-fit: cover;
            }
            .bottom {
              display: flex;
              align-items: center;
              justify-content: flex-end;
              margin-bottom: -5px;
              gap: 3px;
              span {
                font-size: 11px;
                font-weight: 300;
                color: rgba(#000, 0.6);
                @include no-select();
              }
              .icon {
                display: flex;
                align-items: center;
                justify-content: center;
                width: 14px;
                height: 14px;
                img {
                  @include no-select();
                }
              }
            }
          }
          .outgoing-message {
            margin-left: auto !important;
            margin-right: 0;
            background: #f5f5f5;
          }
        }
        .send-message-bar {
          display: flex;
          align-items: center;
          justify-content: center;
          gap: 7px;
          width: 100%;
          padding: 10px 15px;
          border-top: 1px solid rgba(#075e56, 0.3);
          background: #fff;
          textarea {
            width: 100%;
            border-radius: 16px;
            border: 1px solid rgba(#8e8e93, 0.3);
            padding: 8px 12px;
            resize: none;
            max-height: 100px;
          }
          .send-message-btn {
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
            width: 36px;
            height: 30px;
            background: #007bff;
            cursor: pointer;
            transition: 200ms all;
            &:hover {
              transition: 200ms all;
              background: #005abb;
            }
            svg {
              margin-left: 4px;
              width: 55%;
              height: 55%;
              object-fit: cover;
              @include no-select();
            }
          }
        }
        .iphone-bar {
          position: relative;
          display: flex;
          width: 100%;
          height: 20px;
          background: #fff;
          &::after {
            content: "";
            position: absolute;
            top: 30%;
            left: 50%;
            transform: translate(-50%, -50%);
            background: #000;
            width: 50%;
            height: 5px;
            border-radius: 10px;
          }
        }
      }
    }
  }
}
footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: absolute;
  top: 50%;
  left: 70%;
  transform: translate(-50%, -50%);
  font-family: "SF Pro Display", sans-serif;
  color: #333;
  padding-bottom: 20px;
  font-weight: 300;
  font-size: 14px;
  @include no-select();
  z-index: 0;
  a {
    color: #f1813e;
    font-weight: 600;
  }
}
